def lstoset(ls):
    myset = set(ls) #删除列表中的重复元素
    ls1 = []
    for item in myset:
        if ls.count(item)>=2:
            ls1.append(item)
    return ls1
def main():
    ls = []
    ls = input("请输入一串数字，中间用逗号隔开：\n").split(",")
    print("您输入的数字为：{}".format(ls))
    print("测试结果")
    for i in lstoset(ls):
        print("{}isTrue".format(i))
    print("原列表数据为{}".format(ls))
main()

